@if($list['data'])
    @foreach($list['data'] as $v)
        <li>
            <a href="{{route('wap.post-index',$v['id'])}}">
                <div class="teamHead" style="background-size: cover;background: url('{{$v['thumb']?asset('storage/'.$v['thumb']):''}}') no-repeat center">
                </div>
                <div class="teamTxt">
                    <p>{{$v['post_title']}}</p>
                    <h6>{{$v['digest']}}</h6>

                </div>
            </a>

        </li>
    @endforeach
@endif
<script>
    count = {{count($list['data'])}};
</script>